package item.inkcloud.resourceservice.feignClient;


import item.inkcloud.resourceservice.feignClient.fallback.UserServiceFallback;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "user-service",fallback = UserServiceFallback.class)
public interface UserServiceFeignClient {

    @RequestMapping("/user/getUsername")
    String getUsernameById(@RequestParam("userid") String userid);
}
